{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files\unlevel_replication.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 3 May 2023, 13:30:46
{txt}
{com}. 
. * Open Country Level Data
. 
. use "GenderDiff_OECD_replication", clear
{txt}
{com}. 
. *codebook, compact
. 
. *** Figure 1: The trade attitude gender gap in 19 OECD Countries (Pew Global Attitudes, 2017)
. * This creates the data for the PEW 2017 Excel file in which the chart is made by sorting by the size of the difference using the Stock High-Low-Close option
. 
. tabstat t_good_m t_good_f T_Diff_G T_Diff_se_G if year==2017, by(countryname)

{txt}Summary statistics: Mean
Group variable: countryname (Country Name)

{ralign 16:countryname} {...}
{c |}{...}
  t_good_m  t_good_f  T_Diff_G  T_Di~e_G
{hline 17}{c +}{hline 40}
{ralign 16:Australia} {...}
{c |}{...}
 {res}    .8879      .873     .0149  .0268835
{txt}{ralign 16:Austria} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Belgium} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Canada} {...}
{c |}{...}
 {res}    .9398      .931     .0088  .0178899
{txt}{ralign 16:Chile} {...}
{c |}{...}
 {res}    .8873     .8334     .0539  .0249046
{txt}{ralign 16:Czech Republic} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Denmark} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Estonia} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Finland} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:France} {...}
{c |}{...}
 {res}    .8908     .8847     .0061  .0285759
{txt}{ralign 16:Germany} {...}
{c |}{...}
 {res}     .956     .9234     .0326  .0228659
{txt}{ralign 16:Greece} {...}
{c |}{...}
 {res}    .8492     .7918     .0574   .033603
{txt}{ralign 16:Hungary} {...}
{c |}{...}
 {res}    .8958     .8836     .0122  .0242539
{txt}{ralign 16:Iceland} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Ireland} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Israel} {...}
{c |}{...}
 {res}    .9164     .8897     .0267  .0230289
{txt}{ralign 16:Italy} {...}
{c |}{...}
 {res}    .7346     .6743     .0603  .0381136
{txt}{ralign 16:Japan} {...}
{c |}{...}
 {res}    .9286     .9024     .0262  .0214348
{txt}{ralign 16:Korea} {...}
{c |}{...}
 {res}    .9224      .898     .0244  .0186473
{txt}{ralign 16:Latvia} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Lithuania} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Luxembourg} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Mexico} {...}
{c |}{...}
 {res}     .862     .7361     .1259  .0283769
{txt}{ralign 16:Netherlands} {...}
{c |}{...}
 {res}    .9788     .9497     .0291   .015435
{txt}{ralign 16:New Zealand} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Norway} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Poland} {...}
{c |}{...}
 {res}    .8906     .8263     .0643  .0258172
{txt}{ralign 16:Portugal} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Slovak Republic} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Slovenia} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Spain} {...}
{c |}{...}
 {res}     .949     .9132     .0358  .0224397
{txt}{ralign 16:Sweden} {...}
{c |}{...}
 {res}    .9577     .9342     .0235    .01772
{txt}{ralign 16:Switzerland} {...}
{c |}{...}
 {res}        .         .         .         .
{txt}{ralign 16:Turkey} {...}
{c |}{...}
 {res}    .8596     .8096       .05  .0269774
{txt}{ralign 16:United Kingdom} {...}
{c |}{...}
 {res}    .9694     .9273     .0421  .0180422
{txt}{ralign 16:United States} {...}
{c |}{...}
 {res}    .8952     .8417     .0535  .0224009
{txt}{hline 17}{c +}{hline 40}
{ralign 16:Total} {...}
{c |}{...}
 {res} .9037421  .8643895  .0393526  .0240742
{txt}{hline 17}{c BT}{hline 40}

{com}. 
. *** Figure 2: Bivariate relationship between discrimination measures and the trade attitude gender gap in 22 OECD countries (Pew Global Attitudes Survey, 2002-2017)
. * First list creates fitted line, second line creates scatter chart
. * 3 individual graphs merged together in PowerPoint
. 
. * left panel (Gender Gap by WBL Index Extended)
. 
. quietly: regress T_Diff_G wblindex_ext
{txt}
{com}. predict fitted
{txt}(option {bf:xb} assumed; fitted values)
(617 missing values generated)

{com}. scatter T_Diff_G wblindex_ext || line fitted wblindex_ext , xtitle("WBL Index Extended") ytitle("Gender Gap")  msymbol(o)  scheme(s1mono)
{res}{txt}
{com}. graph export figF1_left.png , replace
{txt}{p 0 4 2}
file {bf}
figF1_left.png{rm}
saved as
PNG
format
{p_end}

{com}. 
. * middle panel (GGG ECO. P&0)
. 
. quietly: regress T_Diff_G GGG_EPO
{txt}
{com}. predict fitted2
{txt}(option {bf:xb} assumed; fitted values)
(581 missing values generated)

{com}. scatter T_Diff_G GGG_EPO || line fitted2 GGG_EPO, xtitle("GGG ECO. P&0") ytitle("Gender Gap")  msymbol(o)  scheme(s1mono)
{res}{txt}
{com}. graph export figF1_middle.png , replace
{txt}{p 0 4 2}
file {bf}
figF1_middle.png{rm}
saved as
PNG
format
{p_end}

{com}. 
. * right panel (Gender Gap by Prioritize Male Jobs)
. 
. quietly: regress T_Diff_G jb_agree_a
{txt}
{com}. predict fitted3
{txt}(option {bf:xb} assumed; fitted values)
(661 missing values generated)

{com}. scatter T_Diff_G jb_agree_a || line  fitted3 jb_agree_a, xtitle("Prioritize Male Jobs") ytitle("Gender Gap")  msymbol(o)  scheme(s1mono)
{res}{txt}
{com}. graph export figF1_right.png , replace
{txt}{p 0 4 2}
file {bf}
figF1_right.png{rm}
saved as
PNG
format
{p_end}

{com}. 
. 
. *** Table 1: Analysis of relationship between discrimination measures and the trade attitudes gender gap (Pew Global Attitudes Survey, 2002-2017)
.         
. **** PEW Gender Gap Regressions (Table 1: Gender Equality + Trade & Growth)
. 
. * Base Estimates (left panel)
. 
. quietly: regress T_Diff_G wblindex_ext i.year, cl(countryname)
{txt}
{com}. estimates store m1ext, title("De Jure")
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO i.year, cl(countryname)
{txt}
{com}. estimates store m2, title("De Facto 1")
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a i.year, cl(countryname)
{txt}
{com}. estimates store m3, title("De Facto 2")
{txt}
{com}. 
. * Base + Economic Controls Estimates (right panel)
. 
. quietly: regress T_Diff_G wblindex_ext Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4ext
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6
{txt}
{com}. 
. * Exports as main_T1.txt for formatting in Excel
. 
. estout m1ext m2 m3 m4ext m5 m6 using "main_T1.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type  style(fixed)
{res}
                    m1ext              m2              m3           m4ext              m5              m6   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex_ext        -0.06                                           -0.10                                   
                   (0.09)                                          (0.09)                                   
2007.year            0.00            0.00            0.03*           0.00            0.00            0.04*  
                      (.)             (.)          (0.02)             (.)             (.)          (0.02)   
2008.year           -0.02           -0.02            0.02           -0.02           -0.02            0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2009.year           -0.02           -0.01            0.02           -0.03           -0.02           -0.01   
                   (0.01)          (0.01)          (0.02)          (0.02)          (0.02)          (0.02)   
2010.year           -0.02           -0.02            0.01           -0.02           -0.02            0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2011.year           -0.03*          -0.03            0.01           -0.03*          -0.03            0.02   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.03)   
2014.year           -0.02           -0.02            0.01           -0.02*          -0.02*           0.01   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
2017.year           -0.02*          -0.02*           0.02*          -0.03**         -0.02**          0.02   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
GGG_EPO                             -0.11*                                          -0.12*                  
                                   (0.06)                                          (0.06)                   
jb_agree_a                                           0.08**                                          0.12** 
                                                   (0.03)                                          (0.04)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
Trade_prGD~n                                                         0.01            0.01            0.01   
                                                                   (0.01)          (0.01)          (0.01)   
GDP_growth                                                          -0.00           -0.00           -0.01   
                                                                   (0.00)          (0.00)          (0.00)   
_cons                0.12            0.13***         0.01            0.10            0.11*          -0.02   
                   (0.08)          (0.04)          (0.02)          (0.09)          (0.06)          (0.03)   
N                   93.00           93.00           77.00           93.00           93.00           77.00   
r2                   0.08            0.13            0.13            0.09            0.14            0.18   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"main_T1.txt"'})

{com}. 
. *** Descriptive information provide in section titled "Are female or male responses driving the gender gap?"
. 
. * Average gap between the proportion of men and the proportion of women with positive trade attitudes + range
. 
. sum t_good_m t_good_f T_Diff_G

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}t_good_m {c |}{res}        106    .8419576    .0910776      .5454      .9788
{txt}{space 4}t_good_f {c |}{res}        106    .7966849    .0989462      .5228      .9592
{txt}{space 4}T_Diff_G {c |}{res}        106    .0452726    .0392757     -.0661       .183
{txt}
{com}. 
. * Correlation of men's and women's beliefs about trade and the size of the gender gap
. 
. corr t_good_m t_good_f T_Diff_G
{txt}(obs=106)

             {c |} t_good_m t_good_f T_Diff_G
{hline 13}{c +}{hline 27}
    t_good_m {c |}{res}   1.0000
    {txt}t_good_f {c |}{res}   0.9178   1.0000
    {txt}T_Diff_G {c |}{res}   0.0066  -0.3908   1.0000

{txt}
{com}. 
. *** Table 2: Analysis of gender gap components (Pew Global Attitudes Survey, 2002-2017)
. 
. * Female Response Model Estimates (left panel)
. 
. quietly: regress T_Diff_G t_good_f wblindex_ext Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4f_ext
{txt}
{com}. quietly: regress T_Diff_G t_good_f GGG_EPO Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress T_Diff_G t_good_f jb_agree_a Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Male Response Model Estimates (right panel)
. 
. quietly: regress T_Diff_G t_good_m wblindex_ext Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4m_ext
{txt}
{com}. quietly: regress T_Diff_G t_good_m GGG_EPO Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress T_Diff_G t_good_m jb_agree_a Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as main_T2.txt for formatting in Excel
. 
. estout m4f_ext m5f m6f m4m_ext m5m m6m using "main_T2.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                  m4f_ext             m5f             m6f         m4m_ext             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
t_good_f            -0.22***        -0.20***        -0.21***                                                
                   (0.08)          (0.07)          (0.06)                                                   
wblindex_ext        -0.01                                           -0.11                                   
                   (0.07)                                          (0.10)                                   
Trade_prGD~n         0.03**          0.03**          0.04***         0.01            0.00            0.00   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
GDP_growth          -0.00           -0.00           -0.00           -0.00           -0.00           -0.01   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2007.year            0.00            0.00            0.01            0.00            0.00            0.04** 
                      (.)             (.)          (0.01)             (.)             (.)          (0.02)   
2008.year           -0.01           -0.02           -0.01           -0.02           -0.02            0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2009.year           -0.01           -0.01           -0.02           -0.03           -0.02           -0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2010.year           -0.01           -0.01            0.00           -0.02           -0.02            0.02   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2011.year           -0.02           -0.02            0.00           -0.04*          -0.03            0.02   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.03)   
2014.year           -0.02*          -0.02**         -0.01           -0.02*          -0.02*           0.01   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
2017.year           -0.00           -0.00            0.02           -0.03**         -0.03**          0.02   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
GGG_EPO                             -0.07                                           -0.12*                  
                                   (0.06)                                          (0.06)                   
jb_agree_a                                           0.08**                                          0.12** 
                                                   (0.03)                                          (0.05)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
t_good_m                                                             0.04            0.04            0.05   
                                                                   (0.07)          (0.07)          (0.08)   
_cons                0.11            0.14**          0.05            0.09            0.11           -0.04   
                   (0.08)          (0.06)          (0.04)          (0.09)          (0.07)          (0.04)   
N                   93.00           93.00           77.00           93.00           93.00           77.00   
r2                   0.27            0.29            0.33            0.10            0.15            0.19   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"main_T2.txt"'})

{com}. 
. *** Table 3: Analysis of gender inequality measures on proportion of men and women responding that trade is good for the country (Pew Global Attitudes Survey, 2002-2017)
. 
. * Female Response Prop. Estimates (left panel)
. 
. quietly: regress t_good_f wblindex_ext Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4f_ext
{txt}
{com}. quietly: regress t_good_f GGG_EPO Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress t_good_f jb_agree_a Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Male Response Prop. Estimates (right panel)
. 
. quietly: regress t_good_m wblindex_ext Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4m_ext
{txt}
{com}. quietly: regress t_good_m GGG_EPO Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress t_good_m jb_agree_a Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as main_T3.txt for formatting in Excel
. 
. estout m4f_ext m5f m6f m4m_ext m5m m6m  using "main_T3.txt.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                  m4f_ext             m5f             m6f         m4m_ext             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex_ext         0.42**                                          0.32**                                 
                   (0.18)                                          (0.12)                                   
Ex_GS_prct~n         0.57***         0.54**          0.46***         0.54***         0.50**          0.41***
                   (0.18)          (0.20)          (0.13)          (0.17)          (0.18)          (0.11)   
Trade_prGD~n        -0.54**         -0.47**         -0.38**         -0.49**         -0.43**         -0.32** 
                   (0.20)          (0.22)          (0.16)          (0.18)          (0.19)          (0.12)   
GDP_growth           0.01**          0.01            0.01            0.01**          0.00            0.00   
                   (0.00)          (0.01)          (0.01)          (0.00)          (0.01)          (0.01)   
2007.year            0.00            0.00           -0.09***         0.00            0.00           -0.06*  
                      (.)             (.)          (0.03)             (.)             (.)          (0.03)   
2008.year            0.06***         0.05**         -0.05            0.04*           0.03           -0.04   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.03)          (0.04)   
2009.year            0.12***         0.08**          0.01            0.09***         0.06           -0.01   
                   (0.02)          (0.04)          (0.04)          (0.03)          (0.04)          (0.05)   
2010.year            0.05**          0.05**         -0.05            0.03            0.03           -0.04   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.04)   
2011.year            0.10***         0.09***        -0.03            0.06***         0.06***        -0.01   
                   (0.02)          (0.02)          (0.04)          (0.02)          (0.02)          (0.04)   
2014.year            0.02            0.01           -0.08**         -0.00           -0.01           -0.08** 
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.03)   
2017.year            0.09***         0.09***         0.00            0.07***         0.07***         0.02   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.02)   
GGG_EPO                              0.24**                                          0.12                   
                                   (0.11)                                          (0.11)                   
jb_agree_a                                          -0.20**                                         -0.08   
                                                   (0.08)                                          (0.05)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
_cons                0.62**          0.69***         0.85***         0.69***         0.77***         0.77***
                   (0.24)          (0.22)          (0.17)          (0.19)          (0.20)          (0.13)   
N                   93.00           93.00           77.00           93.00           93.00           77.00   
r2                   0.52            0.49            0.56            0.54            0.50            0.58   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"main_T3.txt.txt"'})

{com}. 
. *** Figure 3 summarizes exported data from Table 1, 2, and 3 and was processed in Excel. See Excel file.
. 
. *** Table 4: Analysis of relationship between individual and national characteristics and belief that trade is good for the country (Pew Global Attitudes Survey, 2002-2017)
. * Need to switch from country level to individual level data
. 
. cd "C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files"
{res}C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files
{txt}
{com}. use "GenderDiff_ind_replication.dta", clear
{txt}
{com}. 
. *codebook
. 
. xtset Country

{txt}{col 1}Panel variable: {res}Country{txt} (unbalanced)

{com}. 
. * Base Model Estimates (left panel)
. 
. quietly: xtreg trade_good female wblindex_ext i_female_wblindex_ext Trade_prGDP_ln GDP_growth i.year
{txt}
{com}. estimates store m1a, title("WBL")
{txt}
{com}. 
. quietly: xtreg trade_good female GGG_EPO i_female_GGG_EPO Trade_prGDP_ln GDP_growth i.year
{txt}
{com}. estimates store m1b, title("GGG")
{txt}
{com}. 
. quietly: xtreg trade_good female jb_agree_a i_female_jb_agree_a Trade_prGDP_ln GDP_growth i.year
{txt}
{com}. estimates store m1c, title("WVS")
{txt}
{com}. 
. * Base Model + College Estimates (right panel)
. 
. quietly: xtreg trade_good female college wblindex_ext i_female_wblindex_ext Trade_prGDP_ln GDP_growth i.year
{txt}
{com}. estimates store m2a, title("WBL")
{txt}
{com}. 
. quietly: xtreg trade_good female college GGG_EPO i_female_GGG_EPO Trade_prGDP_ln GDP_growth i.year
{txt}
{com}. estimates store m2b, title("GGG")
{txt}
{com}. 
. quietly: xtreg trade_good female college jb_agree_a i_female_jb_agree_a Trade_prGDP_ln GDP_growth i.year
{txt}
{com}. estimates store m2c, title("WVS")
{txt}
{com}. 
. * Exports to Excel as main_T4.txt for formatting
. 
. estout m1a m1b m1c m2a m2b m2c using "main_T4.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                      m1a             m1b             m1c             m2a             m2b             m2c   
                     b/se            b/se            b/se            b/se            b/se            b/se   
female              -0.13***        -0.10***        -0.03***        -0.11***        -0.09***        -0.02***
                   (0.03)          (0.02)          (0.01)          (0.04)          (0.02)          (0.01)   
wblindex_ext        -0.12                                           -0.37***                                
                   (0.09)                                          (0.11)                                   
i_female_w~t         0.11***                                         0.09**                                 
                   (0.03)                                          (0.04)                                   
Trade_prGD~n         0.03            0.02            0.05***         0.08***         0.05***         0.13***
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.00)   
GDP_growth           0.01***         0.01***         0.01***         0.00*           0.01***         0.00** 
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2007.year            0.00            0.00           -0.06***         0.00            0.00           -0.09***
                      (.)             (.)          (0.01)             (.)             (.)          (0.01)   
2008.year           -0.17            0.00           -0.05***        -0.18            0.00           -0.08***
                   (0.19)          (0.01)          (0.01)          (0.19)          (0.01)          (0.01)   
2009.year           -0.14            0.07***         0.01           -0.17            0.08***        -0.04***
                   (0.16)          (0.01)          (0.01)          (0.15)          (0.01)          (0.01)   
2010.year           -0.17            0.03***        -0.01           -0.18            0.03***        -0.02***
                   (0.16)          (0.01)          (0.01)          (0.15)          (0.01)          (0.01)   
2011.year           -0.14            0.06***         0.02*          -0.15            0.06***         0.01   
                   (0.16)          (0.01)          (0.01)          (0.15)          (0.01)          (0.01)   
2014.year           -0.19            0.02***        -0.05***        -0.19            0.03***        -0.06***
                   (0.16)          (0.01)          (0.01)          (0.15)          (0.01)          (0.01)   
2017.year           -0.10            0.11***         0.06***        -0.11            0.11***         0.02** 
                   (0.16)          (0.01)          (0.01)          (0.15)          (0.01)          (0.01)   
GGG_EPO                             -0.45***                                        -0.29***                
                                   (0.07)                                          (0.08)                   
i_female_G~O                         0.10***                                         0.08***                
                                   (0.03)                                          (0.03)                   
jb_agree_a                                           0.38***                                        -0.07***
                                                   (0.06)                                          (0.02)   
i_female_j~a                                        -0.06***                                        -0.09***
                                                   (0.02)                                          (0.02)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
2003.year                                           -0.06***                                        -0.05***
                                                   (0.01)                                          (0.01)   
college                                                              0.06***         0.06***         0.07***
                                                                   (0.00)          (0.00)          (0.00)   
_cons                0.98***         0.98***         0.57***         1.01***         0.75***         0.34***
                   (0.19)          (0.08)          (0.07)          (0.19)          (0.08)          (0.02)   
N                56907.00        74783.00        63427.00        47552.00        65323.00        53800.00   
r2                                                                                                          
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"main_T4.txt"'})

{com}. 
. 
. **** II. APPENDIX
. 
. cd "C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files"
{res}C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files
{txt}
{com}. use "GenderDiff_OECD_replication", clear
{txt}
{com}. 
. *** Table A1: World Bank Labor Equality Index (WBL, 2009-2018)
. 
. table countryname year if year>2008, statistic(mean wblindex_ext) nformat(%5.2f) totals(countryname)
{res}
{smcl}
{reset}{...}
{hline 17}{c -}{c TT}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 5}
{space 17} {c |}  {space 36}year{space 35}
{space 17} {c |}  2009   2010   2011   2012   2013   2014   2015   2016   2017   2018   Total
{hline 17}{c -}{c +}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 5}
Country Name{space 5} {c |}  {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 5}
  Australia{space 6} {c |}  {result:0.87}   {result:0.87}   {result:0.87}   {result:0.94}   {result:0.94}   {result:0.97}   {result:0.97}   {result:0.97}   {result:0.97}   {result:0.97}   {space 1}{result:0.93}
  Austria{space 8} {c |}  {result:0.94}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.97}
  Belgium{space 8} {c |}  {result:0.94}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {space 1}{result:0.98}
  Canada{space 9} {c |}  {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.98}
  Chile{space 10} {c |}  {result:0.75}   {result:0.75}   {result:0.75}   {result:0.75}   {result:0.77}   {result:0.77}   {result:0.77}   {result:0.77}   {result:0.77}   {result:0.77}   {space 1}{result:0.76}
  Czech Republic{space 1} {c |}  {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.93}
  Denmark{space 8} {c |}  {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {space 1}{result:0.99}
  Estonia{space 8} {c |}  {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.98}   {result:0.98}   {space 1}{result:0.93}
  Finland{space 8} {c |}  {result:0.94}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.97}
  France{space 9} {c |}  {result:0.92}   {result:0.92}   {result:0.92}   {result:0.94}   {result:0.94}   {result:0.98}   {result:0.98}   {result:1.00}   {result:1.00}   {result:1.00}   {space 1}{result:0.96}
  Germany{space 8} {c |}  {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {space 1}{result:0.92}
  Greece{space 9} {c |}  {result:0.88}   {result:0.88}   {result:0.91}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.95}
  Hungary{space 8} {c |}  {result:0.88}   {result:0.88}   {result:0.91}   {result:0.91}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.92}
  Iceland{space 8} {c |}  {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.97}   {result:0.97}   {space 1}{result:0.93}
  Ireland{space 8} {c |}  {result:0.95}   {result:0.95}   {result:0.95}   {result:0.95}   {result:0.95}   {result:0.95}   {result:0.95}   {result:0.95}   {result:0.95}   {result:0.98}   {space 1}{result:0.95}
  Israel{space 9} {c |}  {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {result:0.81}   {space 1}{result:0.81}
  Italy{space 10} {c |}  {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.93}
  Japan{space 10} {c |}  {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {result:0.79}   {space 1}{result:0.79}
  Korea{space 10} {c |}  {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.85}   {result:0.85}   {result:0.85}   {result:0.85}   {result:0.85}   {result:0.85}   {space 1}{result:0.84}
  Latvia{space 9} {c |}  {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {space 1}{result:0.99}
  Lithuania{space 6} {c |}  {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.93}
  Luxembourg{space 5} {c |}  {result:0.94}   {result:0.94}   {result:0.94}   {result:0.97}   {result:0.97}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {space 1}{result:0.98}
  Mexico{space 9} {c |}  {result:0.75}   {result:0.75}   {result:0.75}   {result:0.75}   {result:0.77}   {result:0.83}   {result:0.86}   {result:0.86}   {result:0.86}   {result:0.86}   {space 1}{result:0.81}
  Netherlands{space 4} {c |}  {result:0.89}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.92}
  New Zealand{space 4} {c |}  {result:0.89}   {result:0.89}   {result:0.89}   {result:0.89}   {result:0.89}   {result:0.89}   {result:0.89}   {result:0.89}   {result:0.91}   {result:0.91}   {space 1}{result:0.89}
  Norway{space 9} {c |}  {result:0.88}   {result:0.88}   {result:0.88}   {result:0.88}   {result:0.88}   {result:0.88}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.91}
  Poland{space 9} {c |}  {result:0.79}   {result:0.79}   {result:0.82}   {result:0.85}   {result:0.85}   {result:0.85}   {result:0.88}   {result:0.88}   {result:0.88}   {result:0.94}   {space 1}{result:0.85}
  Portugal{space 7} {c |}  {result:0.95}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.97}
  Slovak Republic {c |}  {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {space 1}{result:0.94}
  Slovenia{space 7} {c |}  {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.94}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {result:0.91}   {space 1}{result:0.92}
  Spain{space 10} {c |}  {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.98}
  Sweden{space 9} {c |}  {result:0.97}   {result:0.97}   {result:0.97}   {result:0.97}   {result:0.97}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {result:1.00}   {space 1}{result:0.98}
  Switzerland{space 4} {c |}  {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {result:0.82}   {space 1}{result:0.82}
  Turkey{space 9} {c |}  {result:0.71}   {result:0.71}   {result:0.71}   {result:0.71}   {result:0.71}   {result:0.71}   {result:0.71}   {result:0.79}   {result:0.79}   {result:0.79}   {space 1}{result:0.73}
  United Kingdom{space 1} {c |}  {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.92}   {result:0.95}   {result:0.95}   {result:0.98}   {result:0.98}   {result:0.98}   {space 1}{result:0.94}
  United States{space 2} {c |}  {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {result:0.84}   {space 1}{result:0.84}
{hline 17}{c -}{c BT}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 5}

{com}. tabstat wblindex_ext if year>2008, by(year) statistic(min max mean sd) format(%5.2f)

{txt}Summary for variables: wblindex_ext
Group variable: year 

{ralign 8:year} {...}
{c |}       Min       Max      Mean        SD
{hline 9}{c +}{hline 40}
{ralign 8:2009} {...}
{c |}{...}
     {res} 0.71      0.98      0.89      0.07
{txt}{ralign 8:2010} {...}
{c |}{...}
     {res} 0.71      0.98      0.90      0.07
{txt}{ralign 8:2011} {...}
{c |}{...}
     {res} 0.71      0.98      0.90      0.07
{txt}{ralign 8:2012} {...}
{c |}{...}
     {res} 0.71      0.98      0.90      0.07
{txt}{ralign 8:2013} {...}
{c |}{...}
     {res} 0.71      1.00      0.91      0.07
{txt}{ralign 8:2014} {...}
{c |}{...}
     {res} 0.71      1.00      0.92      0.07
{txt}{ralign 8:2015} {...}
{c |}{...}
     {res} 0.71      1.00      0.92      0.07
{txt}{ralign 8:2016} {...}
{c |}{...}
     {res} 0.77      1.00      0.93      0.07
{txt}{ralign 8:2017} {...}
{c |}{...}
     {res} 0.77      1.00      0.93      0.07
{txt}{ralign 8:2018} {...}
{c |}{...}
     {res} 0.77      1.00      0.93      0.07
{txt}{hline 9}{c +}{hline 40}
{ralign 8:Total} {...}
{c |}{...}
     {res} 0.71      1.00      0.91      0.07
{txt}{hline 9}{c BT}{hline 40}

{com}. 
. *** Table A2: Economic Participation and Opportunity Index (GGG, alternate years 2006-2018)
. 
. * The table command displays data for each country for the alternating years and tabstat command calculates the mean across the full time period
. 
. table countryname year if year==2006 | year==2008 | year==2010 | year==2012 | year==2014 | year==2016 | year==2018, statistic(mean GGG_EPO) nformat(%5.2f) nototals
{res}
{smcl}
{reset}{...}
{hline 17}{c -}{c TT}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}
{space 17} {c |}  {space 21}year{space 21}
{space 17} {c |}  2006   2008   2010   2012   2014   2016   2018
{hline 17}{c -}{c +}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}
Country Name{space 5} {c |}  {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}   {space 4}
  Australia{space 6} {c |}  {result:0.73}   {result:0.73}   {result:0.74}   {result:0.76}   {result:0.80}   {result:0.72}   {result:0.72}
  Austria{space 8} {c |}  {result:0.55}   {result:0.59}   {result:0.60}   {result:0.65}   {result:0.67}   {result:0.65}   {result:0.66}
  Belgium{space 8} {c |}  {result:0.62}   {result:0.65}   {result:0.71}   {result:0.72}   {result:0.76}   {result:0.73}   {result:0.71}
  Canada{space 9} {c |}  {result:0.73}   {result:0.74}   {result:0.78}   {result:0.79}   {result:0.79}   {result:0.73}   {result:0.75}
  Chile{space 10} {c |}  {result:0.51}   {result:0.52}   {result:0.53}   {result:0.55}   {result:0.55}   {result:0.56}   {result:0.58}
  Czech Republic{space 1} {c |}  {result:0.63}   {result:0.64}   {result:0.62}   {result:0.60}   {result:0.62}   {result:0.65}   {result:0.65}
  Denmark{space 8} {c |}  {result:0.71}   {result:0.71}   {result:0.74}   {result:0.77}   {result:0.81}   {result:0.74}   {result:0.73}
  Estonia{space 8} {c |}  {result:0.68}   {result:0.70}   {result:0.72}   {result:0.72}   {result:0.71}   {result:0.70}   {result:0.73}
  Finland{space 8} {c |}  {result:0.73}   {result:0.74}   {result:0.76}   {result:0.78}   {result:0.79}   {result:0.79}   {result:0.79}
  France{space 9} {c |}  {result:0.52}   {result:0.66}   {result:0.66}   {result:0.67}   {result:0.70}   {result:0.68}   {result:0.69}
  Germany{space 8} {c |}  {result:0.67}   {result:0.69}   {result:0.71}   {result:0.74}   {result:0.74}   {result:0.69}   {result:0.73}
  Greece{space 9} {c |}  {result:0.59}   {result:0.63}   {result:0.62}   {result:0.63}   {result:0.64}   {result:0.65}   {result:0.68}
  Hungary{space 8} {c |}  {result:0.64}   {result:0.67}   {result:0.69}   {result:0.66}   {result:0.67}   {result:0.67}   {result:0.68}
  Iceland{space 8} {c |}  {result:0.71}   {result:0.73}   {result:0.75}   {result:0.75}   {result:0.82}   {result:0.81}   {result:0.79}
  Ireland{space 8} {c |}  {result:0.64}   {result:0.68}   {result:0.74}   {result:0.75}   {result:0.75}   {result:0.71}   {result:0.73}
  Israel{space 9} {c |}  {result:0.64}   {result:0.66}   {result:0.69}   {result:0.68}   {result:0.64}   {result:0.68}   {result:0.68}
  Italy{space 10} {c |}  {result:0.53}   {result:0.59}   {result:0.59}   {result:0.59}   {result:0.57}   {result:0.57}   {result:0.59}
  Japan{space 10} {c |}  {result:0.55}   {result:0.54}   {result:0.57}   {result:0.58}   {result:0.62}   {result:0.57}   {result:0.60}
  Korea{space 10} {c |}  {result:0.48}   {result:0.49}   {result:0.52}   {result:0.51}   {result:0.51}   {result:0.54}   {result:0.55}
  Latvia{space 9} {c |}  {result:0.71}   {result:0.75}   {result:0.75}   {result:0.76}   {result:0.79}   {result:0.79}   {result:0.81}
  Lithuania{space 6} {c |}  {result:0.71}   {result:0.74}   {result:0.76}   {result:0.76}   {result:0.74}   {result:0.76}   {result:0.76}
  Luxembourg{space 5} {c |}  {result:0.56}   {result:0.61}   {result:0.75}   {result:0.81}   {result:0.75}   {result:0.75}   {result:0.69}
  Mexico{space 9} {c |}  {result:0.48}   {result:0.48}   {result:0.52}   {result:0.54}   {result:0.55}   {result:0.54}   {result:0.57}
  Netherlands{space 4} {c |}  {result:0.64}   {result:0.67}   {result:0.72}   {result:0.76}   {result:0.71}   {result:0.66}   {result:0.70}
  New Zealand{space 4} {c |}  {result:0.71}   {result:0.78}   {result:0.77}   {result:0.78}   {result:0.75}   {result:0.76}   {result:0.76}
  Norway{space 9} {c |}  {result:0.73}   {result:0.78}   {result:0.83}   {result:0.83}   {result:0.84}   {result:0.82}   {result:0.81}
  Poland{space 9} {c |}  {result:0.64}   {result:0.62}   {result:0.65}   {result:0.65}   {result:0.68}   {result:0.69}   {result:0.71}
  Portugal{space 7} {c |}  {result:0.67}   {result:0.70}   {result:0.67}   {result:0.68}   {result:0.72}   {result:0.71}   {result:0.72}
  Slovak Republic {c |}  {result:0.65}   {result:0.64}   {result:0.64}   {result:0.63}   {result:0.64}   {result:0.65}   {result:0.66}
  Slovenia{space 7} {c |}  {result:0.67}   {result:0.71}   {result:0.72}   {result:0.71}   {result:0.78}   {result:0.78}   {result:0.80}
  Spain{space 10} {c |}  {result:0.54}   {result:0.58}   {result:0.62}   {result:0.65}   {result:0.65}   {result:0.67}   {result:0.66}
  Sweden{space 9} {c |}  {result:0.73}   {result:0.78}   {result:0.77}   {result:0.80}   {result:0.80}   {result:0.80}   {result:0.81}
  Switzerland{space 4} {c |}  {result:0.71}   {result:0.66}   {result:0.73}   {result:0.75}   {result:0.78}   {result:0.75}   {result:0.74}
  Turkey{space 9} {c |}  {result:0.43}   {result:0.41}   {result:0.39}   {result:0.41}   {result:0.45}   {result:0.46}   {result:0.47}
  United Kingdom{space 1} {c |}  {result:0.66}   {result:0.69}   {result:0.72}   {result:0.73}   {result:0.71}   {result:0.70}   {result:0.70}
  United States{space 2} {c |}  {result:0.76}   {result:0.75}   {result:0.80}   {result:0.81}   {result:0.83}   {result:0.75}   {result:0.78}
{hline 17}{c -}{c BT}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}

{com}. tabstat GGG_EPO if year>2005, by(countryname) statistic(mean) format(%5.2f)

{txt}Summary for variables: GGG_EPO
Group variable: countryname (Country Name)

{ralign 16:countryname} {...}
{c |}      Mean
{hline 17}{c +}{hline 10}
{ralign 16:Australia} {...}
{c |}{...}
     {res} 0.75
{txt}{ralign 16:Austria} {...}
{c |}{...}
     {res} 0.63
{txt}{ralign 16:Belgium} {...}
{c |}{...}
     {res} 0.70
{txt}{ralign 16:Canada} {...}
{c |}{...}
     {res} 0.76
{txt}{ralign 16:Chile} {...}
{c |}{...}
     {res} 0.54
{txt}{ralign 16:Czech Republic} {...}
{c |}{...}
     {res} 0.63
{txt}{ralign 16:Denmark} {...}
{c |}{...}
     {res} 0.75
{txt}{ralign 16:Estonia} {...}
{c |}{...}
     {res} 0.71
{txt}{ralign 16:Finland} {...}
{c |}{...}
     {res} 0.77
{txt}{ralign 16:France} {...}
{c |}{...}
     {res} 0.66
{txt}{ralign 16:Germany} {...}
{c |}{...}
     {res} 0.71
{txt}{ralign 16:Greece} {...}
{c |}{...}
     {res} 0.64
{txt}{ralign 16:Hungary} {...}
{c |}{...}
     {res} 0.67
{txt}{ralign 16:Iceland} {...}
{c |}{...}
     {res} 0.77
{txt}{ralign 16:Ireland} {...}
{c |}{...}
     {res} 0.72
{txt}{ralign 16:Israel} {...}
{c |}{...}
     {res} 0.67
{txt}{ralign 16:Italy} {...}
{c |}{...}
     {res} 0.58
{txt}{ralign 16:Japan} {...}
{c |}{...}
     {res} 0.57
{txt}{ralign 16:Korea} {...}
{c |}{...}
     {res} 0.52
{txt}{ralign 16:Latvia} {...}
{c |}{...}
     {res} 0.77
{txt}{ralign 16:Lithuania} {...}
{c |}{...}
     {res} 0.75
{txt}{ralign 16:Luxembourg} {...}
{c |}{...}
     {res} 0.71
{txt}{ralign 16:Mexico} {...}
{c |}{...}
     {res} 0.53
{txt}{ralign 16:Netherlands} {...}
{c |}{...}
     {res} 0.70
{txt}{ralign 16:New Zealand} {...}
{c |}{...}
     {res} 0.77
{txt}{ralign 16:Norway} {...}
{c |}{...}
     {res} 0.81
{txt}{ralign 16:Poland} {...}
{c |}{...}
     {res} 0.66
{txt}{ralign 16:Portugal} {...}
{c |}{...}
     {res} 0.69
{txt}{ralign 16:Slovak Republic} {...}
{c |}{...}
     {res} 0.64
{txt}{ralign 16:Slovenia} {...}
{c |}{...}
     {res} 0.74
{txt}{ralign 16:Spain} {...}
{c |}{...}
     {res} 0.63
{txt}{ralign 16:Sweden} {...}
{c |}{...}
     {res} 0.79
{txt}{ralign 16:Switzerland} {...}
{c |}{...}
     {res} 0.73
{txt}{ralign 16:Turkey} {...}
{c |}{...}
     {res} 0.43
{txt}{ralign 16:United Kingdom} {...}
{c |}{...}
     {res} 0.71
{txt}{ralign 16:United States} {...}
{c |}{...}
     {res} 0.78
{txt}{hline 17}{c +}{hline 10}
{ralign 16:Total} {...}
{c |}{...}
     {res} 0.68
{txt}{hline 17}{c BT}{hline 10}

{com}. 
. * The first tabstat summarizes data for each of the alternating years and the second for the full time period
. 
. tabstat GGG_EPO if year==2006 | year==2008 | year==2010 | year==2012 | year==2014 | year==2016 | year==2018, by(year) statistic(min max mean sd) format(%5.2f)

{txt}Summary for variables: GGG_EPO
Group variable: year 

{ralign 8:year} {...}
{c |}       Min       Max      Mean        SD
{hline 9}{c +}{hline 40}
{ralign 8:2006} {...}
{c |}{...}
     {res} 0.43      0.76      0.63      0.09
{txt}{ralign 8:2008} {...}
{c |}{...}
     {res} 0.41      0.78      0.66      0.09
{txt}{ralign 8:2010} {...}
{c |}{...}
     {res} 0.39      0.83      0.68      0.09
{txt}{ralign 8:2012} {...}
{c |}{...}
     {res} 0.41      0.83      0.69      0.10
{txt}{ralign 8:2014} {...}
{c |}{...}
     {res} 0.45      0.84      0.70      0.10
{txt}{ralign 8:2016} {...}
{c |}{...}
     {res} 0.46      0.82      0.69      0.08
{txt}{ralign 8:2018} {...}
{c |}{...}
     {res} 0.47      0.81      0.70      0.08
{txt}{hline 9}{c +}{hline 40}
{ralign 8:Total} {...}
{c |}{...}
     {res} 0.39      0.84      0.68      0.09
{txt}{hline 9}{c BT}{hline 40}

{com}. tabstat GGG_EPO if year>2005, statistic(min max mean sd) format(%5.2f)

{txt}{ralign 12:Variable} {...}
{c |}       Min       Max      Mean        SD
{hline 13}{c +}{hline 40}
{ralign 12:GGG_EPO} {...}
{c |}{...}
     {res} 0.39      0.87      0.68      0.09
{txt}{hline 13}{c BT}{hline 40}

{com}. 
. 
. *** Table A3: Prioritize Men's Employment. By country, proportion of respondents agreeing with statement "When jobs are scarce, men should have more right to a job than women." (WVS, waves 3-6)
. table countryname year if year==1994 | year==1999 | year==2005 | year==2010, statistic(mean jb_agree_a) nformat(%5.2f) nototals
{res}
{smcl}
{reset}{...}
{hline 17}{c -}{c TT}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}
{space 17} {c |}  {space 11}year{space 10}
{space 17} {c |}  1994   1999   2005   2010
{hline 17}{c -}{c +}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}
Country Name{space 5} {c |}  {space 4}   {space 4}   {space 4}   {space 4}
  Australia{space 6} {c |}  {result:0.26}   {space 3}{result:.}   {result:0.14}   {result:0.07}
  Austria{space 8} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Belgium{space 8} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Canada{space 9} {c |}  {space 3}{result:.}   {result:0.15}   {result:0.14}   {space 3}{result:.}
  Chile{space 10} {c |}  {result:0.30}   {result:0.25}   {result:0.30}   {result:0.18}
  Czech Republic{space 1} {c |}  {result:0.32}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Denmark{space 8} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Estonia{space 8} {c |}  {result:0.33}   {space 3}{result:.}   {space 3}{result:.}   {result:0.18}
  Finland{space 8} {c |}  {result:0.14}   {space 3}{result:.}   {result:0.10}   {space 3}{result:.}
  France{space 9} {c |}  {space 3}{result:.}   {space 3}{result:.}   {result:0.18}   {space 3}{result:.}
  Germany{space 8} {c |}  {result:0.22}   {space 3}{result:.}   {result:0.18}   {result:0.16}
  Greece{space 9} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Hungary{space 8} {c |}  {result:0.44}   {space 3}{result:.}   {result:0.13}   {space 3}{result:.}
  Iceland{space 8} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Ireland{space 8} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Israel{space 9} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Italy{space 10} {c |}  {space 3}{result:.}   {space 3}{result:.}   {result:0.22}   {space 3}{result:.}
  Japan{space 10} {c |}  {result:0.33}   {result:0.32}   {result:0.27}   {result:0.32}
  Korea{space 10} {c |}  {result:0.43}   {result:0.39}   {result:0.36}   {result:0.32}
  Latvia{space 9} {c |}  {result:0.25}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Lithuania{space 6} {c |}  {result:0.32}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Luxembourg{space 5} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Mexico{space 9} {c |}  {result:0.26}   {result:0.34}   {result:0.25}   {result:0.17}
  Netherlands{space 4} {c |}  {space 3}{result:.}   {space 3}{result:.}   {result:0.12}   {result:0.08}
  New Zealand{space 4} {c |}  {result:0.13}   {space 3}{result:.}   {result:0.08}   {result:0.07}
  Norway{space 9} {c |}  {result:0.14}   {space 3}{result:.}   {result:0.06}   {space 3}{result:.}
  Poland{space 9} {c |}  {result:0.45}   {space 3}{result:.}   {result:0.31}   {result:0.27}
  Portugal{space 7} {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Slovak Republic {c |}  {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}   {space 3}{result:.}
  Slovenia{space 7} {c |}  {result:0.26}   {space 3}{result:.}   {result:0.14}   {result:0.10}
  Spain{space 10} {c |}  {result:0.27}   {result:0.17}   {result:0.17}   {result:0.12}
  Sweden{space 9} {c |}  {result:0.08}   {space 3}{result:.}   {result:0.02}   {result:0.02}
  Switzerland{space 4} {c |}  {result:0.27}   {space 3}{result:.}   {result:0.22}   {space 3}{result:.}
  Turkey{space 9} {c |}  {result:0.67}   {result:0.60}   {result:0.53}   {result:0.60}
  United Kingdom{space 1} {c |}  {result:0.24}   {space 3}{result:.}   {result:0.16}   {space 3}{result:.}
  United States{space 2} {c |}  {result:0.19}   {result:0.10}   {result:0.07}   {result:0.06}
{hline 17}{c -}{c BT}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}{c -}{c -}{c -}{hline 4}

{com}. tabstat jb_agree_a if year==1994 | year==1999 | year==2005 | year==2010, by(year) statistic(count min max mean sd) format(%5.2f) nototal

{txt}Summary for variables: jb_agree_a
Group variable: year 

{ralign 8:year} {...}
{c |}         N       Min       Max      Mean        SD
{hline 9}{c +}{hline 50}
{ralign 8:1994} {...}
{c |}{...}
     {res}22.00      0.08      0.67      0.29      0.13
{txt}{ralign 8:1999} {...}
{c |}{...}
     {res} 8.00      0.10      0.60      0.29      0.16
{txt}{ralign 8:2005} {...}
{c |}{...}
     {res}22.00      0.02      0.53      0.19      0.12
{txt}{ralign 8:2010} {...}
{c |}{...}
     {res}15.00      0.02      0.60      0.18      0.15
{txt}{hline 9}{c BT}{hline 50}

{com}. 
. 
. *** Appendix C: Summary Statistics
. * Generates table of Observation, Mean, Standard Deviation, Min, Max for key variables. Data constrained to observations in which Pew Data is available (T_Diff_G exists)
. * The sum command below constrained to provide standard statistics for key variables for observations in which dependent variables from Pew Data set (T_Diff_G and t_good_m t_good_f) are available.
. sum T_Diff_G t_good_m t_good_f wblindex_ext GGG_EPO jb_agree_a Trade_prGDP_ln Ex_GS_prctGDP_ln GDP_growth if T_Diff_G~=.

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}T_Diff_G {c |}{res}        106    .0452726    .0392757     -.0661       .183
{txt}{space 4}t_good_m {c |}{res}        106    .8419576    .0910776      .5454      .9788
{txt}{space 4}t_good_f {c |}{res}        106    .7966849    .0989462      .5228      .9592
{txt}wblindex_ext {c |}{res}         93     .867029    .0844653      .7063          1
{txt}{space 5}GGG_EPO {c |}{res}         93    .6311086    .1021883      .3856      .8276
{txt}{hline 13}{c +}{hline 57}
{space 2}jb_agree_a {c |}{res}         77     .237274    .1471997      .0198      .5994
{txt}Trade_prGD~n {c |}{res}        106    4.093137    .4153094   3.029438   5.129511
{txt}Ex_GS_prct~n {c |}{res}        106    3.387629    .4489313   2.211812   4.480167
{txt}{space 2}GDP_growth {c |}{res}        106    2.291912    2.953906   -5.61886    11.1135
{txt}
{com}. 
. * Displays years in which data is available for key variables
. foreach var in T_Diff_G t_good_m t_good_f wblindex_ext GGG_EPO jb_agree_a Trade_prGDP_ln Ex_GS_prctGDP_ln GDP_growth {c -(}
{txt}  2{com}. display "`var'"
{txt}  3{com}. tab year if `var'~=.
{txt}  4{com}. {c )-}
T_Diff_G

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       2002 {c |}{res}         13       12.26       12.26
{txt}       2007 {c |}{res}         17       16.04       28.30
{txt}       2008 {c |}{res}         11       10.38       38.68
{txt}       2009 {c |}{res}         12       11.32       50.00
{txt}       2010 {c |}{res}         10        9.43       59.43
{txt}       2011 {c |}{res}         10        9.43       68.87
{txt}       2014 {c |}{res}         14       13.21       82.08
{txt}       2017 {c |}{res}         19       17.92      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        106      100.00
t_good_m

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       2002 {c |}{res}         13       12.26       12.26
{txt}       2007 {c |}{res}         17       16.04       28.30
{txt}       2008 {c |}{res}         11       10.38       38.68
{txt}       2009 {c |}{res}         12       11.32       50.00
{txt}       2010 {c |}{res}         10        9.43       59.43
{txt}       2011 {c |}{res}         10        9.43       68.87
{txt}       2014 {c |}{res}         14       13.21       82.08
{txt}       2017 {c |}{res}         19       17.92      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        106      100.00
t_good_f

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       2002 {c |}{res}         13       12.26       12.26
{txt}       2007 {c |}{res}         17       16.04       28.30
{txt}       2008 {c |}{res}         11       10.38       38.68
{txt}       2009 {c |}{res}         12       11.32       50.00
{txt}       2010 {c |}{res}         10        9.43       59.43
{txt}       2011 {c |}{res}         10        9.43       68.87
{txt}       2014 {c |}{res}         14       13.21       82.08
{txt}       2017 {c |}{res}         19       17.92      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        106      100.00
wblindex_ext

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       2007 {c |}{res}         36        8.33        8.33
{txt}       2008 {c |}{res}         36        8.33       16.67
{txt}       2009 {c |}{res}         36        8.33       25.00
{txt}       2010 {c |}{res}         36        8.33       33.33
{txt}       2011 {c |}{res}         36        8.33       41.67
{txt}       2012 {c |}{res}         36        8.33       50.00
{txt}       2013 {c |}{res}         36        8.33       58.33
{txt}       2014 {c |}{res}         36        8.33       66.67
{txt}       2015 {c |}{res}         36        8.33       75.00
{txt}       2016 {c |}{res}         36        8.33       83.33
{txt}       2017 {c |}{res}         36        8.33       91.67
{txt}       2018 {c |}{res}         36        8.33      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        432      100.00
GGG_EPO

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       2006 {c |}{res}         36        7.69        7.69
{txt}       2007 {c |}{res}         36        7.69       15.38
{txt}       2008 {c |}{res}         36        7.69       23.08
{txt}       2009 {c |}{res}         36        7.69       30.77
{txt}       2010 {c |}{res}         36        7.69       38.46
{txt}       2011 {c |}{res}         36        7.69       46.15
{txt}       2012 {c |}{res}         36        7.69       53.85
{txt}       2013 {c |}{res}         36        7.69       61.54
{txt}       2014 {c |}{res}         36        7.69       69.23
{txt}       2015 {c |}{res}         36        7.69       76.92
{txt}       2016 {c |}{res}         36        7.69       84.62
{txt}       2017 {c |}{res}         36        7.69       92.31
{txt}       2018 {c |}{res}         36        7.69      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        468      100.00
jb_agree_a

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       1994 {c |}{res}         22        5.67        5.67
{txt}       1995 {c |}{res}         22        5.67       11.34
{txt}       1996 {c |}{res}         22        5.67       17.01
{txt}       1997 {c |}{res}         22        5.67       22.68
{txt}       1998 {c |}{res}         22        5.67       28.35
{txt}       1999 {c |}{res}          8        2.06       30.41
{txt}       2000 {c |}{res}          8        2.06       32.47
{txt}       2001 {c |}{res}          8        2.06       34.54
{txt}       2002 {c |}{res}          8        2.06       36.60
{txt}       2003 {c |}{res}          8        2.06       38.66
{txt}       2004 {c |}{res}          8        2.06       40.72
{txt}       2005 {c |}{res}         22        5.67       46.39
{txt}       2006 {c |}{res}         22        5.67       52.06
{txt}       2007 {c |}{res}         22        5.67       57.73
{txt}       2008 {c |}{res}         22        5.67       63.40
{txt}       2009 {c |}{res}         22        5.67       69.07
{txt}       2010 {c |}{res}         15        3.87       72.94
{txt}       2011 {c |}{res}         15        3.87       76.80
{txt}       2012 {c |}{res}         15        3.87       80.67
{txt}       2013 {c |}{res}         15        3.87       84.54
{txt}       2014 {c |}{res}         15        3.87       88.40
{txt}       2015 {c |}{res}         15        3.87       92.27
{txt}       2016 {c |}{res}         15        3.87       96.13
{txt}       2017 {c |}{res}         15        3.87      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        388      100.00
Trade_prGDP_ln

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       1990 {c |}{res}         31        3.04        3.04
{txt}       1991 {c |}{res}         32        3.14        6.18
{txt}       1992 {c |}{res}         32        3.14        9.32
{txt}       1993 {c |}{res}         32        3.14       12.46
{txt}       1994 {c |}{res}         32        3.14       15.60
{txt}       1995 {c |}{res}         36        3.53       19.14
{txt}       1996 {c |}{res}         36        3.53       22.67
{txt}       1997 {c |}{res}         36        3.53       26.20
{txt}       1998 {c |}{res}         36        3.53       29.74
{txt}       1999 {c |}{res}         36        3.53       33.27
{txt}       2000 {c |}{res}         36        3.53       36.80
{txt}       2001 {c |}{res}         36        3.53       40.33
{txt}       2002 {c |}{res}         36        3.53       43.87
{txt}       2003 {c |}{res}         36        3.53       47.40
{txt}       2004 {c |}{res}         36        3.53       50.93
{txt}       2005 {c |}{res}         36        3.53       54.47
{txt}       2006 {c |}{res}         36        3.53       58.00
{txt}       2007 {c |}{res}         36        3.53       61.53
{txt}       2008 {c |}{res}         36        3.53       65.06
{txt}       2009 {c |}{res}         36        3.53       68.60
{txt}       2010 {c |}{res}         36        3.53       72.13
{txt}       2011 {c |}{res}         36        3.53       75.66
{txt}       2012 {c |}{res}         36        3.53       79.20
{txt}       2013 {c |}{res}         36        3.53       82.73
{txt}       2014 {c |}{res}         36        3.53       86.26
{txt}       2015 {c |}{res}         36        3.53       89.79
{txt}       2016 {c |}{res}         36        3.53       93.33
{txt}       2017 {c |}{res}         36        3.53       96.86
{txt}       2018 {c |}{res}         32        3.14      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,019      100.00
Ex_GS_prctGDP_ln

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       1990 {c |}{res}         31        3.04        3.04
{txt}       1991 {c |}{res}         32        3.14        6.18
{txt}       1992 {c |}{res}         32        3.14        9.32
{txt}       1993 {c |}{res}         32        3.14       12.46
{txt}       1994 {c |}{res}         32        3.14       15.60
{txt}       1995 {c |}{res}         36        3.53       19.14
{txt}       1996 {c |}{res}         36        3.53       22.67
{txt}       1997 {c |}{res}         36        3.53       26.20
{txt}       1998 {c |}{res}         36        3.53       29.74
{txt}       1999 {c |}{res}         36        3.53       33.27
{txt}       2000 {c |}{res}         36        3.53       36.80
{txt}       2001 {c |}{res}         36        3.53       40.33
{txt}       2002 {c |}{res}         36        3.53       43.87
{txt}       2003 {c |}{res}         36        3.53       47.40
{txt}       2004 {c |}{res}         36        3.53       50.93
{txt}       2005 {c |}{res}         36        3.53       54.47
{txt}       2006 {c |}{res}         36        3.53       58.00
{txt}       2007 {c |}{res}         36        3.53       61.53
{txt}       2008 {c |}{res}         36        3.53       65.06
{txt}       2009 {c |}{res}         36        3.53       68.60
{txt}       2010 {c |}{res}         36        3.53       72.13
{txt}       2011 {c |}{res}         36        3.53       75.66
{txt}       2012 {c |}{res}         36        3.53       79.20
{txt}       2013 {c |}{res}         36        3.53       82.73
{txt}       2014 {c |}{res}         36        3.53       86.26
{txt}       2015 {c |}{res}         36        3.53       89.79
{txt}       2016 {c |}{res}         36        3.53       93.33
{txt}       2017 {c |}{res}         36        3.53       96.86
{txt}       2018 {c |}{res}         32        3.14      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,019      100.00
GDP_growth

       {txt}year {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       1990 {c |}{res}         28        2.75        2.75
{txt}       1991 {c |}{res}         31        3.04        5.79
{txt}       1992 {c |}{res}         32        3.14        8.93
{txt}       1993 {c |}{res}         33        3.24       12.17
{txt}       1994 {c |}{res}         33        3.24       15.41
{txt}       1995 {c |}{res}         34        3.34       18.74
{txt}       1996 {c |}{res}         36        3.53       22.28
{txt}       1997 {c |}{res}         36        3.53       25.81
{txt}       1998 {c |}{res}         36        3.53       29.34
{txt}       1999 {c |}{res}         36        3.53       32.88
{txt}       2000 {c |}{res}         36        3.53       36.41
{txt}       2001 {c |}{res}         36        3.53       39.94
{txt}       2002 {c |}{res}         36        3.53       43.47
{txt}       2003 {c |}{res}         36        3.53       47.01
{txt}       2004 {c |}{res}         36        3.53       50.54
{txt}       2005 {c |}{res}         36        3.53       54.07
{txt}       2006 {c |}{res}         36        3.53       57.61
{txt}       2007 {c |}{res}         36        3.53       61.14
{txt}       2008 {c |}{res}         36        3.53       64.67
{txt}       2009 {c |}{res}         36        3.53       68.20
{txt}       2010 {c |}{res}         36        3.53       71.74
{txt}       2011 {c |}{res}         36        3.53       75.27
{txt}       2012 {c |}{res}         36        3.53       78.80
{txt}       2013 {c |}{res}         36        3.53       82.34
{txt}       2014 {c |}{res}         36        3.53       85.87
{txt}       2015 {c |}{res}         36        3.53       89.40
{txt}       2016 {c |}{res}         36        3.53       92.93
{txt}       2017 {c |}{res}         36        3.53       96.47
{txt}       2018 {c |}{res}         36        3.53      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,019      100.00
{txt}
{com}. 
. 
. *** Table D1a: Analysis of relationship between discrimination measures and the trade attitudes gender gap (Pew Global Attitudes Survey, 2002-2017) including welfare expenditure
. 
. * Main Independent Variable Only (Left Panel)
. 
. quietly: regress T_Diff_G wblindex_ext i.year, cl(countryname)
{txt}
{com}. estimates store m1ext, title("De Jure")
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO i.year, cl(countryname)
{txt}
{com}. estimates store m2, title("De Facto 1")
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a i.year, cl(countryname)
{txt}
{com}. estimates store m3, title("De Facto 2")
{txt}
{com}. 
. * Main Independent Variable with Main Economic Variables and Welfare Expenditure (Right Panel)
. 
. quietly: regress T_Diff_G wblindex_ext Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m4ext
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m5
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m6
{txt}
{com}. 
. * Exports as Appendix_D1a.txt for formatting in Excel
. 
. estout m1ext m2 m3 m4ext m5 m6 using "Appendix_D1a.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                    m1ext              m2              m3           m4ext              m5              m6   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex_ext        -0.06                                           -0.19                                   
                   (0.09)                                          (0.12)                                   
2007.year            0.00            0.00            0.03*           0.00            0.00            0.03*  
                      (.)             (.)          (0.02)             (.)             (.)          (0.02)   
2008.year           -0.02           -0.02            0.02           -0.02           -0.02            0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2009.year           -0.02           -0.01            0.02           -0.03           -0.02           -0.01   
                   (0.01)          (0.01)          (0.02)          (0.02)          (0.02)          (0.02)   
2010.year           -0.02           -0.02            0.01           -0.02           -0.02            0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.03)   
2011.year           -0.03*          -0.03            0.01           -0.04*          -0.03            0.02   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.03)   
2014.year           -0.02           -0.02            0.01           -0.03**         -0.02*           0.01   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.02)   
2017.year           -0.02*          -0.02*           0.02*          -0.02**         -0.02**          0.02   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.02)   
GGG_EPO                             -0.11*                                          -0.16**                 
                                   (0.06)                                          (0.07)                   
jb_agree_a                                           0.08**                                          0.13** 
                                                   (0.03)                                          (0.04)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
Trade_prGD~n                                                         0.02            0.01            0.01   
                                                                   (0.01)          (0.01)          (0.01)   
GDP_growth                                                          -0.00           -0.00           -0.01   
                                                                   (0.00)          (0.00)          (0.00)   
socexp_pub~p                                                         0.00            0.00            0.00   
                                                                   (0.00)          (0.00)          (0.00)   
_cons                0.12            0.13***         0.01            0.13            0.12**         -0.03   
                   (0.08)          (0.04)          (0.02)          (0.09)          (0.06)          (0.03)   
N                   93.00           93.00           77.00           93.00           93.00           77.00   
r2                   0.08            0.13            0.13            0.12            0.17            0.18   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_D1a.txt"'})

{com}. 
. *** Table D1b: Analysis of relationship between discrimination measures and the trade attitudes gender gap (Pew Global Attitudes Survey, 2002-2017) with lagged independent variables
. 
. * Creates lagged variables
. 
. sort countryname year
{txt}
{com}. by countryname: generate wblindex_L1=wblindex[_n-1] if countryname[_n-1]==countryname
{txt}(725 missing values generated)

{com}. by countryname: generate wblindex_ext_L1=wblindex_ext[_n-1]
{txt}(653 missing values generated)

{com}. by countryname: generate GGG_EPO_L1=GGG_EPO[_n-1]
{txt}(617 missing values generated)

{com}. by countryname: generate jb_agree_a_L1=jb_agree_a[_n-1]
{txt}(661 missing values generated)

{com}. by countryname: generate Trade_prGDP_ln_L1=Trade_prGDP_ln[_n-1]
{txt}(62 missing values generated)

{com}. by countryname: generate GDP_growth_L1=GDP_growth[_n-1]
{txt}(66 missing values generated)

{com}. by countryname: generate socexp_pub_pcgdp_L1=socexp_pub_pcgdp[_n-1]
{txt}(80 missing values generated)

{com}. by countryname: generate Ex_GS_prctGDP_ln_L1=Ex_GS_prctGDP_ln[_n-1]
{txt}(62 missing values generated)

{com}. 
. 
. * Main Independent Variable Only (Left Panel)
. 
. quietly: regress T_Diff_G wblindex_ext_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m1ext, title("De Jure")
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m2, title("De Facto 1")
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m3, title("De Facto 2")
{txt}
{com}. 
. * Main Independent Variable with Main Economic Variables and Welfare Expenditure (Right Panel)
. 
. quietly: regress T_Diff_G wblindex_ext_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m4ext
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m5
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m6
{txt}
{com}. 
. * Exports as Appendix_D1b.txt for formatting in Excel
. 
. estout m1ext m2 m3 m4ext m5 m6 using "Appendix_D1b.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                    m1ext              m2              m3           m4ext              m5              m6   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex_e~1        -0.09                                           -0.28**                                 
                   (0.10)                                          (0.12)                                   
2008.year            0.00           -0.01            0.02            0.00           -0.01            0.02   
                      (.)          (0.02)          (0.02)             (.)          (0.02)          (0.02)   
2009.year            0.00           -0.01            0.02           -0.01           -0.01            0.02   
                   (0.01)          (0.01)          (0.02)          (0.01)          (0.02)          (0.02)   
2010.year           -0.00           -0.02            0.02           -0.02           -0.02            0.00   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.03)   
2011.year           -0.02           -0.03            0.01           -0.03           -0.03            0.02   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.03)   
2014.year           -0.00           -0.02            0.01           -0.01           -0.02            0.01   
                   (0.02)          (0.01)          (0.01)          (0.02)          (0.01)          (0.02)   
2017.year           -0.00           -0.02*           0.02*          -0.01           -0.02*           0.02   
                   (0.02)          (0.01)          (0.01)          (0.02)          (0.01)          (0.02)   
GGG_EPO_L1                          -0.11*                                          -0.15**                 
                                   (0.06)                                          (0.06)                   
2007.year                            0.00            0.03*                           0.00            0.04** 
                                      (.)          (0.02)                             (.)          (0.02)   
jb_agree_a~1                                         0.08**                                          0.10***
                                                   (0.04)                                          (0.03)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
Trade_prGD~1                                                         0.02            0.00            0.01   
                                                                   (0.02)          (0.01)          (0.01)   
GDP_growth~1                                                        -0.00            0.00           -0.00   
                                                                   (0.00)          (0.00)          (0.00)   
socexp_pub~1                                                         0.00            0.00            0.00   
                                                                   (0.00)          (0.00)          (0.00)   
_cons                0.13            0.13***         0.01            0.16            0.11**         -0.02   
                   (0.09)          (0.04)          (0.02)          (0.09)          (0.05)          (0.02)   
N                   76.00           93.00           79.00           76.00           93.00           79.00   
r2                   0.05            0.13            0.12            0.14            0.16            0.14   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_D1b.txt"'})

{com}. 
. 
. *** Table D2a: Analysis of gender gap components (Pew Global Attitudes Survey, 2002-2017) with welfare spending
. 
. * Women's Preference (Left Panel)
. 
. quietly: regress T_Diff_G t_good_f wblindex_ext Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m4f_ext
{txt}
{com}. quietly: regress T_Diff_G t_good_f GGG_EPO Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress T_Diff_G t_good_f jb_agree_a Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Men's Preference (Right Panel)
. 
. quietly: regress T_Diff_G t_good_m wblindex_ext Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m4m_ext
{txt}
{com}. quietly: regress T_Diff_G t_good_m GGG_EPO Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress T_Diff_G t_good_m jb_agree_a Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as Appendix_D2a.txt for formatting in Excel
. 
. estout m4f_ext m5f m6f m4m_ext m5m m6m using "Appendix_D2a.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                  m4f_ext             m5f             m6f         m4m_ext             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
t_good_f            -0.22***        -0.21***        -0.24***                                                
                   (0.08)          (0.07)          (0.06)                                                   
wblindex_ext        -0.08                                           -0.20                                   
                   (0.11)                                          (0.13)                                   
Trade_prGD~n         0.04**          0.03**          0.04***         0.01            0.00            0.00   
                   (0.02)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
GDP_growth          -0.00            0.00           -0.00           -0.00           -0.00           -0.01   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
socexp_pub~p         0.00            0.00            0.00            0.00            0.00            0.00   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2007.year            0.00            0.00            0.00            0.00            0.00            0.04** 
                      (.)             (.)          (0.01)             (.)             (.)          (0.02)   
2008.year           -0.02           -0.02           -0.02           -0.02           -0.02            0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2009.year           -0.01           -0.01           -0.02           -0.03           -0.02           -0.01   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2010.year           -0.01           -0.01           -0.01           -0.03           -0.02            0.02   
                   (0.02)          (0.02)          (0.02)          (0.02)          (0.02)          (0.02)   
2011.year           -0.02           -0.02           -0.00           -0.04*          -0.03*           0.02   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.03)   
2014.year           -0.02*          -0.02*          -0.02**         -0.02**         -0.02*           0.01   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
2017.year           -0.00           -0.00            0.01           -0.03**         -0.03**          0.02   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.02)   
GGG_EPO                             -0.12                                           -0.16**                 
                                   (0.07)                                          (0.07)                   
jb_agree_a                                           0.10***                                         0.13** 
                                                   (0.03)                                          (0.05)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
t_good_m                                                             0.05            0.03            0.05   
                                                                   (0.06)          (0.07)          (0.08)   
_cons                0.13*           0.14**          0.04            0.12            0.11*          -0.04   
                   (0.07)          (0.06)          (0.04)          (0.09)          (0.06)          (0.04)   
N                   93.00           93.00           77.00           93.00           93.00           77.00   
r2                   0.28            0.32            0.35            0.12            0.17            0.19   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_D2a.txt"'})

{com}. 
. *** Table D2b: Analysis of gender gap components (Pew Global Attitudes Survey, 2002-2017) with lagged independent variables
. 
. * Women's Preference (Left Panel)
. 
. quietly: regress T_Diff_G t_good_f wblindex_ext_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m4f_ext
{txt}
{com}. quietly: regress T_Diff_G t_good_f GGG_EPO_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress T_Diff_G t_good_f jb_agree_a_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Men's Preference (Right Panel)
. 
. quietly: regress T_Diff_G t_good_m wblindex_ext_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m4m_ext
{txt}
{com}. quietly: regress T_Diff_G t_good_m GGG_EPO_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress T_Diff_G t_good_m jb_agree_a_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as Appendix_D2b.txt for formatting in Excel
. 
. estout m4f_ext m5f m6f m4m_ext m5m m6m using "Appendix_D2b.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                  m4f_ext             m5f             m6f         m4m_ext             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
t_good_f            -0.20**         -0.21***        -0.26***                                                
                   (0.08)          (0.07)          (0.06)                                                   
wblindex_e~1        -0.14                                           -0.30**                                 
                   (0.13)                                          (0.13)                                   
Trade_prGD~1         0.04**          0.03**          0.04***         0.02            0.00            0.00   
                   (0.02)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
GDP_growth~1        -0.00            0.00           -0.00           -0.00            0.00           -0.00   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
socexp_pub~1         0.00            0.00            0.00            0.00            0.00            0.00   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2008.year            0.00           -0.01            0.00            0.00           -0.01            0.03   
                      (.)          (0.02)          (0.02)             (.)          (0.02)          (0.02)   
2009.year            0.00           -0.00           -0.00           -0.01           -0.01            0.02   
                   (0.01)          (0.02)          (0.01)          (0.01)          (0.02)          (0.02)   
2010.year           -0.00           -0.01           -0.01           -0.03           -0.02            0.00   
                   (0.02)          (0.02)          (0.02)          (0.03)          (0.02)          (0.02)   
2011.year           -0.01           -0.01            0.01           -0.03           -0.03            0.02   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.03)   
2014.year           -0.01           -0.02           -0.02           -0.01           -0.02            0.02   
                   (0.02)          (0.01)          (0.01)          (0.02)          (0.01)          (0.02)   
2017.year            0.01           -0.00            0.02           -0.01           -0.02            0.02   
                   (0.02)          (0.01)          (0.01)          (0.02)          (0.01)          (0.02)   
GGG_EPO_L1                          -0.11*                                          -0.15**                 
                                   (0.06)                                          (0.06)                   
2007.year                            0.00            0.01                            0.00            0.04** 
                                      (.)          (0.01)                             (.)          (0.01)   
jb_agree_a~1                                         0.08**                                          0.10***
                                                   (0.03)                                          (0.03)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
t_good_m                                                             0.06            0.02            0.03   
                                                                   (0.06)          (0.06)          (0.08)   
_cons                0.13            0.14**          0.04            0.16            0.11*          -0.03   
                   (0.08)          (0.06)          (0.05)          (0.10)          (0.06)          (0.04)   
N                   76.00           93.00           79.00           76.00           93.00           79.00   
r2                   0.28            0.32            0.35            0.15            0.16            0.15   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_D2b.txt"'})

{com}. 
. *** Table D3a: Analysis of gender inequality measures on proportion of men and women responding that trade is good for the country (Pew Global Attitudes Survey, 2002-2017) with welfare spending
. 
. * Women's Preference (Left Panel)
. 
. quietly: regress t_good_f wblindex_ext Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m4f_ext
{txt}
{com}. quietly: regress t_good_f GGG_EPO Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress t_good_f jb_agree_a Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Men's Preference (Right Panel)
. 
. quietly: regress t_good_m wblindex_ext Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m4m_ext
{txt}
{com}. quietly: regress t_good_m GGG_EPO Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress t_good_m jb_agree_a Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth socexp_pub_pcgdp i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as Appendix_D3a.txt for formatting in Excel
. 
. estout m4f_ext m5f m6f m4m_ext m5m m6m using "Appendix_D3a.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                  m4f_ext             m5f             m6f         m4m_ext             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex_ext         0.60**                                          0.41**                                 
                   (0.23)                                          (0.16)                                   
Ex_GS_prct~n         0.61***         0.54**          0.41**          0.56***         0.49**          0.36** 
                   (0.17)          (0.21)          (0.16)          (0.16)          (0.18)          (0.12)   
Trade_prGD~n        -0.60***        -0.47**         -0.32*          -0.52***        -0.41**         -0.25*  
                   (0.19)          (0.23)          (0.18)          (0.16)          (0.19)          (0.14)   
GDP_growth           0.01**          0.01            0.01            0.01**          0.01            0.00   
                   (0.00)          (0.01)          (0.01)          (0.00)          (0.01)          (0.01)   
socexp_pub~p        -0.00           -0.00            0.00           -0.00            0.00            0.00   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2007.year            0.00            0.00           -0.11***         0.00            0.00           -0.08** 
                      (.)             (.)          (0.03)             (.)             (.)          (0.03)   
2008.year            0.07***         0.05***        -0.06            0.04*           0.03           -0.06   
                   (0.02)          (0.02)          (0.04)          (0.02)          (0.03)          (0.05)   
2009.year            0.12***         0.08***        -0.01            0.09***         0.06           -0.03   
                   (0.02)          (0.03)          (0.05)          (0.03)          (0.04)          (0.05)   
2010.year            0.06**          0.05**         -0.07*           0.04            0.03           -0.05   
                   (0.03)          (0.02)          (0.03)          (0.03)          (0.02)          (0.04)   
2011.year            0.11***         0.09***        -0.04            0.07***         0.05***        -0.03   
                   (0.03)          (0.02)          (0.04)          (0.02)          (0.02)          (0.04)   
2014.year            0.02            0.01           -0.10**         -0.00           -0.01           -0.09** 
                   (0.03)          (0.03)          (0.04)          (0.02)          (0.02)          (0.03)   
2017.year            0.09***         0.09***        -0.01            0.07***         0.07***         0.01   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.02)   
GGG_EPO                              0.24                                            0.08                   
                                   (0.16)                                          (0.17)                   
jb_agree_a                                          -0.15                                           -0.02   
                                                   (0.10)                                          (0.07)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
_cons                0.62**          0.69***         0.75***         0.69***         0.76***         0.66***
                   (0.23)          (0.22)          (0.23)          (0.19)          (0.20)          (0.19)   
N                   93.00           93.00           77.00           93.00           93.00           77.00   
r2                   0.54            0.49            0.59            0.55            0.51            0.62   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_D3a.txt"'})

{com}. 
. *** Table D3b: Analysis of gender inequality measures on proportion of men and women responding that trade is good for the country (Pew Global Attitudes Survey, 2002-2017) with lagged independent variables
. 
. * Women's Preference (Left Panel)
. 
. quietly: regress t_good_f wblindex_ext_L1 Ex_GS_prctGDP_ln_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m4f_ext
{txt}
{com}. quietly: regress t_good_f GGG_EPO_L1 Ex_GS_prctGDP_ln_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress t_good_f jb_agree_a_L1 Ex_GS_prctGDP_ln_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Men's Preference (Right Panel)
. 
. quietly: regress t_good_m wblindex_ext_L1 Ex_GS_prctGDP_ln_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m4m_ext
{txt}
{com}. quietly: regress t_good_m GGG_EPO_L1 Ex_GS_prctGDP_ln_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress t_good_m jb_agree_a_L1 Ex_GS_prctGDP_ln_L1 Trade_prGDP_ln_L1 GDP_growth_L1 socexp_pub_pcgdp_L1 i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as Appendix_D3a.txt for formatting in Excel
. 
. estout m4f_ext m5f m6f m4m_ext m5m m6m using "Appendix_D3b.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                  m4f_ext             m5f             m6f         m4m_ext             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex_e~1         0.81***                                         0.53***                                
                   (0.20)                                          (0.18)                                   
Ex_GS_prct~1         0.64***         0.53**          0.44**          0.64***         0.50***         0.40** 
                   (0.21)          (0.22)          (0.20)          (0.17)          (0.16)          (0.16)   
Trade_prGD~1        -0.63**         -0.46*          -0.35           -0.61***        -0.42**         -0.30   
                   (0.22)          (0.24)          (0.24)          (0.18)          (0.17)          (0.18)   
GDP_growth~1         0.01*           0.00            0.00            0.01**          0.00            0.00   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.00)          (0.00)   
socexp_pub~1        -0.00*          -0.00            0.00           -0.00            0.00            0.00   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2008.year            0.00            0.02           -0.08**          0.00            0.01           -0.05   
                      (.)          (0.02)          (0.04)             (.)          (0.02)          (0.04)   
2009.year            0.05*           0.05*          -0.06*           0.05            0.04*          -0.04   
                   (0.03)          (0.03)          (0.03)          (0.03)          (0.02)          (0.03)   
2010.year            0.12***         0.08**         -0.03            0.10**          0.06*          -0.03   
                   (0.03)          (0.03)          (0.03)          (0.04)          (0.03)          (0.03)   
2011.year            0.08***         0.09***        -0.03            0.06***         0.06***        -0.02   
                   (0.03)          (0.02)          (0.05)          (0.01)          (0.01)          (0.05)   
2014.year            0.01            0.01           -0.09**         -0.00           -0.01           -0.08** 
                   (0.03)          (0.03)          (0.03)          (0.03)          (0.02)          (0.03)   
2017.year            0.06*           0.09***        -0.00            0.05            0.07***         0.02   
                   (0.03)          (0.02)          (0.03)          (0.03)          (0.02)          (0.03)   
GGG_EPO_L1                           0.24                                            0.09                   
                                   (0.16)                                          (0.15)                   
2007.year                            0.00           -0.10***                         0.00           -0.07*  
                                      (.)          (0.03)                             (.)          (0.03)   
jb_agree_a~1                                        -0.11*                                          -0.01   
                                                   (0.05)                                          (0.05)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
_cons                0.52*           0.68***         0.78**          0.68***         0.76***         0.71***
                   (0.26)          (0.21)          (0.28)          (0.22)          (0.18)          (0.24)   
N                   76.00           93.00           79.00           76.00           93.00           79.00   
r2                   0.57            0.51            0.58            0.59            0.53            0.64   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_D3b.txt"'})

{com}. 
. *** Table E1: Analysis of relationship between discrimination measures and the trade attitudes gender gap (Pew Global Attitudes Survey, 2002-2017) with no extension of the WBL Index
. 
. * Base Model Estimates (Left Panel)
. quietly: regress T_Diff_G wblindex i.year, cl(countryname)
{txt}
{com}. estimates store m1, title("De Jure")
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO i.year, cl(countryname)
{txt}
{com}. estimates store m2, title("De Facto 1")
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a i.year, cl(countryname)
{txt}
{com}. estimates store m3, title("De Facto 2")
{txt}
{com}. 
. * Based + Economic Controls Estimates (Right Panel)
. 
. quietly: regress T_Diff_G wblindex Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4
{txt}
{com}. quietly: regress T_Diff_G GGG_EPO Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5
{txt}
{com}. quietly: regress T_Diff_G jb_agree_a Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6
{txt}
{com}. 
. * Exports as Appendix_E1.txt for formatting in Excel
. 
. estout m1 m4 m5 m6 using "Appendix_E1.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                       m1              m4              m5              m6   
                     b/se            b/se            b/se            b/se   
wblindex            -0.07           -0.12                                   
                   (0.08)          (0.08)                                   
2009.year            0.00            0.00           -0.02           -0.01   
                      (.)             (.)          (0.02)          (0.02)   
2010.year           -0.01            0.00           -0.02            0.01   
                   (0.02)          (0.03)          (0.02)          (0.02)   
2011.year           -0.02           -0.01           -0.03            0.02   
                   (0.02)          (0.03)          (0.02)          (0.03)   
2014.year           -0.00            0.00           -0.02*           0.01   
                   (0.02)          (0.02)          (0.01)          (0.01)   
2017.year           -0.01            0.00           -0.02**          0.02   
                   (0.02)          (0.02)          (0.01)          (0.01)   
Trade_prGD~n                         0.02            0.01            0.01   
                                   (0.01)          (0.01)          (0.01)   
GDP_growth                          -0.00           -0.00           -0.01   
                                   (0.00)          (0.00)          (0.00)   
GGG_EPO                                             -0.12*                  
                                                   (0.06)                   
2007.year                                            0.00            0.04*  
                                                      (.)          (0.02)   
2008.year                                           -0.02            0.01   
                                                   (0.02)          (0.02)   
jb_agree_a                                                           0.12** 
                                                                   (0.04)   
2002.year                                                            0.00   
                                                                      (.)   
_cons                0.11            0.07            0.11*          -0.02   
                   (0.07)          (0.08)          (0.06)          (0.03)   
N                   65.00           65.00           93.00           77.00   
r2                   0.05            0.07            0.14            0.18   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_E1.txt"'})

{com}. 
. *** Table E2: Analysis of gender gap components (Pew Global Attitudes Survey, 2002-2017) with no extension of the WBL Index
. 
. * Female Response Model (left panel)
. 
. quietly: regress T_Diff_G t_good_f wblindex Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4f
{txt}
{com}. quietly: regress T_Diff_G t_good_f GGG_EPO Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress T_Diff_G t_good_f jb_agree_a Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Male Response Model (right panel)
. 
. quietly: regress T_Diff_G t_good_m wblindex Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4m
{txt}
{com}. quietly: regress T_Diff_G t_good_m GGG_EPO Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress T_Diff_G t_good_m jb_agree_a Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as Appendix_E2.txt for formatting in Excel
. 
. estout m4f m5f m6f m4m m5m m6m using "Appendix_E2.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                      m4f             m5f             m6f             m4m             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
t_good_f            -0.21**         -0.20***        -0.21***                                                
                   (0.07)          (0.07)          (0.06)                                                   
wblindex            -0.02                                           -0.12                                   
                   (0.08)                                          (0.09)                                   
Trade_prGD~n         0.03**          0.03**          0.04***         0.02            0.00            0.00   
                   (0.02)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
GDP_growth          -0.00           -0.00           -0.00           -0.00           -0.00           -0.01   
                   (0.00)          (0.00)          (0.00)          (0.00)          (0.00)          (0.00)   
2009.year            0.00           -0.01           -0.02            0.00           -0.02           -0.01   
                      (.)          (0.02)          (0.02)             (.)          (0.02)          (0.02)   
2010.year           -0.00           -0.01            0.00            0.00           -0.02            0.02   
                   (0.02)          (0.02)          (0.02)          (0.03)          (0.02)          (0.02)   
2011.year           -0.01           -0.02            0.00           -0.01           -0.03            0.02   
                   (0.02)          (0.02)          (0.03)          (0.02)          (0.02)          (0.03)   
2014.year           -0.01           -0.02**         -0.01            0.00           -0.02*           0.01   
                   (0.02)          (0.01)          (0.01)          (0.02)          (0.01)          (0.01)   
2017.year            0.00           -0.00            0.02            0.00           -0.03**          0.02   
                   (0.02)          (0.01)          (0.01)          (0.02)          (0.01)          (0.01)   
GGG_EPO                             -0.07                                           -0.12*                  
                                   (0.06)                                          (0.06)                   
2007.year                            0.00            0.01                            0.00            0.04** 
                                      (.)          (0.01)                             (.)          (0.02)   
2008.year                           -0.02           -0.01                           -0.02            0.01   
                                   (0.02)          (0.02)                          (0.02)          (0.02)   
jb_agree_a                                           0.08**                                          0.12** 
                                                   (0.03)                                          (0.05)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
t_good_m                                                             0.02            0.04            0.05   
                                                                   (0.08)          (0.07)          (0.08)   
_cons                0.10            0.14**          0.05            0.07            0.11           -0.04   
                   (0.07)          (0.06)          (0.04)          (0.08)          (0.07)          (0.04)   
N                   65.00           93.00           77.00           65.00           93.00           77.00   
r2                   0.26            0.29            0.33            0.07            0.15            0.19   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_E2.txt"'})

{com}. 
. *** Table E3: Analysis of gender inequality measures on proportion of men and women responding that trade is good for the country (Pew Global Attitudes Survey, 2002-2017) with no extension of the WBL Index
. 
. * Female Preference Model (Left Panel)
. 
. quietly: regress t_good_f wblindex Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4f
{txt}
{com}. quietly: regress t_good_f GGG_EPO Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5f
{txt}
{com}. quietly: regress t_good_f jb_agree_a Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6f
{txt}
{com}. 
. * Male Preference Model (Left Panel)
. 
. quietly: regress t_good_m wblindex Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m4m
{txt}
{com}. quietly: regress t_good_m GGG_EPO Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m5m
{txt}
{com}. quietly: regress t_good_m jb_agree_a Ex_GS_prctGDP_ln Trade_prGDP_ln GDP_growth i.year, cl(countryname)
{txt}
{com}. estimates store m6m
{txt}
{com}. 
. * Exports as Appendix_E3.txt for formatting in Excel
. 
. estout m4f m5f m6f m4m m5m m6m  using "Appendix_E3.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                      m4f             m5f             m6f             m4m             m5m             m6m   
                     b/se            b/se            b/se            b/se            b/se            b/se   
wblindex             0.45**                                          0.34**                                 
                   (0.20)                                          (0.15)                                   
Ex_GS_prct~n         0.56*           0.54**          0.46***         0.52*           0.50**          0.41***
                   (0.28)          (0.20)          (0.13)          (0.25)          (0.18)          (0.11)   
Trade_prGD~n        -0.53           -0.47**         -0.38**         -0.48           -0.43**         -0.32** 
                   (0.31)          (0.22)          (0.16)          (0.28)          (0.19)          (0.12)   
GDP_growth           0.01*           0.01            0.01            0.01            0.00            0.00   
                   (0.01)          (0.01)          (0.01)          (0.01)          (0.01)          (0.01)   
2009.year            0.00            0.08**          0.01            0.00            0.06           -0.01   
                      (.)          (0.04)          (0.04)             (.)          (0.04)          (0.05)   
2010.year           -0.06*           0.05**         -0.05           -0.05            0.03           -0.04   
                   (0.03)          (0.02)          (0.03)          (0.04)          (0.02)          (0.04)   
2011.year           -0.01            0.09***        -0.03           -0.02            0.06***        -0.01   
                   (0.03)          (0.02)          (0.04)          (0.03)          (0.02)          (0.04)   
2014.year           -0.10**          0.01           -0.08**         -0.09**         -0.01           -0.08** 
                   (0.04)          (0.02)          (0.03)          (0.04)          (0.02)          (0.03)   
2017.year           -0.02            0.09***         0.00           -0.02            0.07***         0.02   
                   (0.04)          (0.02)          (0.03)          (0.04)          (0.02)          (0.02)   
GGG_EPO                              0.24**                                          0.12                   
                                   (0.11)                                          (0.11)                   
2007.year                            0.00           -0.09***                         0.00           -0.06*  
                                      (.)          (0.03)                             (.)          (0.03)   
2008.year                            0.05**         -0.05                            0.03           -0.04   
                                   (0.02)          (0.03)                          (0.03)          (0.04)   
jb_agree_a                                          -0.20**                                         -0.08   
                                                   (0.08)                                          (0.05)   
2002.year                                            0.00                                            0.00   
                                                      (.)                                             (.)   
_cons                0.72**          0.69***         0.85***         0.76**          0.77***         0.77***
                   (0.32)          (0.22)          (0.17)          (0.28)          (0.20)          (0.13)   
N                   65.00           93.00           77.00           65.00           93.00           77.00   
r2                   0.47            0.49            0.56            0.50            0.50            0.58   
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_E3.txt"'})

{com}. 
. 
. **** Appendix F: Gender Equality and College Education
. 
. *** Table F1: Analysis of gender inequality measures on likelihood of respondent holding a college degree (Pew Global Attitudes Survey, 2002-2017)
. 
. cd "C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files"
{res}C:\Users\alexa\Dropbox\Research\Research Projects\Gender Cross National\Submission Docs\FPA_Jan2022\Replication Files
{txt}
{com}. use "GenderDiff_ind_replication.dta", clear
{txt}
{com}. xtset Country

{txt}{col 1}Panel variable: {res}Country{txt} (unbalanced)

{com}. 
. quietly: xtreg college female i.year
{txt}
{com}. quietly: xtreg college female wblindex_ext i_female_wblindex_ext i.year
{txt}
{com}. estimates store Educ_WBL, title("WBL")
{txt}
{com}. predict pr_college_male_WBL if e(sample) & female==0
({txt}option {bf:xb} assumed; fitted values)
(71,588 missing values generated)

{com}. predict pr_college_female_WBL if e(sample) & female==1
({txt}option {bf:xb} assumed; fitted values)
(70,320 missing values generated)

{com}. 
. quietly: xtreg college female GGG_EPO i_female_GGG_EPO i.year
{txt}
{com}. estimates store Educ_GGG, title("GGG")
{txt}
{com}. predict pr_college_male_GGG if e(sample) & female==0
({txt}option {bf:xb} assumed; fitted values)
(61,611 missing values generated)

{com}. predict pr_college_female_GGG if e(sample) & female==1
({txt}option {bf:xb} assumed; fitted values)
(59,071 missing values generated)

{com}. 
. quietly: xtreg college female jb_agree_a i_female_jb_agree_a i.year
{txt}
{com}. estimates store Educ_WVS, title("WVS")
{txt}
{com}. predict pr_college_male_WVS if e(sample) & female==0
({txt}option {bf:xb} assumed; fitted values)
(67,385 missing values generated)

{com}. predict pr_college_female_WVS if e(sample) & female==1
({txt}option {bf:xb} assumed; fitted values)
(65,270 missing values generated)

{com}. 
. * Exports as Appendix_F1.txt for formatting in Excel
. 
. estout Educ_WBL Educ_GGG Educ_WVS using "Appendix_F1.txt" ,cells(b(star fmt(2)) se(par fmt(2))) stats(N r2) starlevels(* 0.10 ** 0.05 *** .01) legend replace type style(fixed)
{res}
                 Educ_WBL        Educ_GGG        Educ_WVS   
                     b/se            b/se            b/se   
female              -0.28***        -0.16***        -0.02***
                   (0.04)          (0.02)          (0.01)   
wblindex_ext         1.14***                                
                   (0.14)                                   
i_female_w~t         0.29***                                
                   (0.05)                                   
2007.year            0.00            0.00           -0.00   
                      (.)             (.)          (0.01)   
2008.year           -0.12           -0.01           -0.01   
                   (0.24)          (0.01)          (0.01)   
2009.year            0.02            0.00            0.00   
                   (0.19)          (0.01)          (0.01)   
2010.year            0.05            0.02***         0.01   
                   (0.19)          (0.01)          (0.01)   
2011.year            0.03            0.01            0.03** 
                   (0.19)          (0.01)          (0.01)   
2014.year            0.07            0.07***         0.05***
                   (0.19)          (0.01)          (0.01)   
2017.year            0.09            0.11***         0.10***
                   (0.19)          (0.01)          (0.01)   
GGG_EPO                             -0.06                   
                                   (0.09)                   
i_female_G~O                         0.19***                
                                   (0.03)                   
jb_agree_a                                           0.06   
                                                   (0.07)   
i_female_j~a                                        -0.13***
                                                   (0.03)   
2002.year                                            0.00   
                                                      (.)   
2003.year                                            0.04***
                                                   (0.01)   
_cons               -0.78***         0.27***         0.25***
                   (0.23)          (0.06)          (0.02)   
N                47552.00        68778.00        56805.00   
r2                                                          
* p<0.10, ** p<0.05, *** p<.01
{txt}(output written to {browse  `"Appendix_F1.txt"'})

{com}.  
. *** Figure F1: Prediction of Gender Gap in Education by GGG EPO Gender Equality Measure (Pew Global Attitudes Survey, 2002-2017)
. 
.  #delim ;
{txt}delimiter now ;
{com}.  twoway (lowess pr_college_female_GGG GGG_EPO, lcolor(red) lwidth(medthick) lpattern(dot))
> (lowess pr_college_male_GGG GGG_EPO, lcolor(dknavy) lpattern(dash)) //
> (histogram GGG_EPO, yaxis(2) bin(50) fcolor(none) lcolor(gs10) lwidth(vthin)), //
>  ytitle(Proportion of College Degree Holders By Gender) ytitle(Density, axis(2)) xtitle(GGG_EPO Equality Index) legend(order(1 "Female" 2 "Male")) scheme(s2mono);
{res}{txt}
{com}.  graph export appendix_figF1.png , replace
>  
>  log close

{txt}end of do-file

{com}. exit, clear
